<?php /* Smarty version 2.6.26, created on 2013-04-01 01:57:47
         compiled from ../templates/item_setting.html */ ?>
<?php require_once(SMARTY_CORE_DIR . 'core.load_plugins.php');
smarty_core_load_plugins(array('plugins' => array(array('modifier', 'U', '../templates/item_setting.html', 14, false),array('function', 'html_options', '../templates/item_setting.html', 61, false),array('function', 'html_radios', '../templates/item_setting.html', 108, false),)), $this); ?>
<!DOCTYPE html>
<html>
<head>
	<meta charset="UTF-8">
	<title>コントロールパネル</title>

    <link href="./assets/styles/default.css" rel="stylesheet" />
    <link href="./assets/styles/page/item_rank.css" rel="stylesheet" />
	<script src="./assets/scripts/libs/jquery-1.7.1.min.js" type="text/javascript"></script>
	<script src="./assets/scripts/import.js" type="text/javascript"></script>
		<script type="text/javascript">
		$(function(){
			back_to_search();
			categoryModal({url:"<?php echo ((is_array($_tmp='Home/Category/index')) ? $this->_run_mod_handler('U', true, $_tmp) : U($_tmp)); ?>
?keepThis=true&parent=3&TB_iframe=true&height=500&width=300&modal=false",mode:"tree"});
			
			$('#category').change(function(){	
			var value =	$(this).children('option:selected').val();
                document.form1.mode.value = "select";
                document.form1.category.value = value;
                document.form1.submit();    			
			});
		});
		</script>
</head>
<body>
<?php echo $this->_tpl_vars['zhead']; ?>

<div id="container">	
<?php echo $this->_tpl_vars['zmenu']; ?>

    <article>
    	<h2><span>&nbsp;</span>商品管理<p><a href="javascript:;">Open Plugins</a></p></h2>
        <nav>
        	<ul>
		      <li><a href="<?php echo ((is_array($_tmp='Home/Item/index')) ? $this->_run_mod_handler('U', true, $_tmp) : U($_tmp)); ?>
"><span>商品検索</span></a></li>
              <li><a href="<?php echo ((is_array($_tmp='Home/Item/insert')) ? $this->_run_mod_handler('U', true, $_tmp) : U($_tmp)); ?>
"><span>商品登録</span></a></li>
              <li><a href="<?php echo ((is_array($_tmp='Home/Item/rank')) ? $this->_run_mod_handler('U', true, $_tmp) : U($_tmp)); ?>
"><span>ランキング</span></a></li>
              <li  class="active"><a href="<?php echo ((is_array($_tmp='Home/Item/set')) ? $this->_run_mod_handler('U', true, $_tmp) : U($_tmp)); ?>
"><span>基本設定</span></a></li>
			</ul>
        </nav>

		<section id="content">

        	<h3>基本設定</h3>
			<p class="message">内容を確認し、更新ボタンをクリックしてください。</p>

				<form name="form1" action="<?php echo ((is_array($_tmp='Home/Item/set')) ? $this->_run_mod_handler('U', true, $_tmp) : U($_tmp)); ?>
" method="get" enctype="multipart/form-data">
                    <input type="hidden" name="id" value="<?php echo $this->_tpl_vars['forms']['id']; ?>
"/>
					<h4><span>&nbsp;</span>基本情報</h4>
					<table class="formTable">
						<tbody>
							<tr>
								<th class="must1">コンテンツ名</th>
								<td>
									<input type="text" name="content" class="text" value="<?php echo $this->_tpl_vars['forms']['content']; ?>
"><?php echo $this->_tpl_vars['res']; ?>

								</td>
								
							</tr>
							<tr class="odd">
								<th class="must1">カテゴリ設定</th>
								<td>
									<select name="category" id="category">
										  <?php echo smarty_function_html_options(array('options' => $this->_tpl_vars['dao_categorygood'],'selected' => $this->_tpl_vars['forms']['category']), $this);?>

									</select><?php echo $this->_tpl_vars['res1']; ?>

								</td>
							</tr>
							<tr>
								<th class="must1">企業設定</th>
								<td>
									<input type="button" id="id_category" class="btn_category" value="カテゴリ選択">
									<input type="hidden" name="company"><?php echo $this->_tpl_vars['res2']; ?>

									<ul id="selected_category">
								   </ul>
								</td>
							</tr>
							<tr class="odd">
								<th>トップページ表示件数</th>
								<td>
									<ul>
										<li><input type="text" name="homepnumber1" class="smartspinner" value="<?php echo $this->_tpl_vars['forms']['homepnumber1']; ?>
">件 </li><?php echo $this->_tpl_vars['res3']; ?>

										<li><input type="text" name="homepnumber2" class="smartspinner" value="<?php echo $this->_tpl_vars['forms']['homepnumber2']; ?>
">件 </li><?php echo $this->_tpl_vars['res3']; ?>

										<li><input type="text" name="homepnumber3" class="smartspinner" value="<?php echo $this->_tpl_vars['forms']['homepnumber3']; ?>
">件  </li><?php echo $this->_tpl_vars['res3']; ?>

									</ul>
								</td>
							</tr>
							<tr>
								<th>トップページ表示項目</th>
                                 <td>
								 <?php $_from = $this->_tpl_vars['hg_nu']; if (!is_array($_from) && !is_object($_from)) { settype($_from, 'array'); }$this->_foreach['member'] = array('total' => count($_from), 'iteration' => 0);
if ($this->_foreach['member']['total'] > 0):
    foreach ($_from as $this->_tpl_vars['kk'] => $this->_tpl_vars['vv']):
        $this->_foreach['member']['iteration']++;
?>
							    <label><input type="checkbox" name="<?php echo $this->_tpl_vars['vv']; ?>
"  <?php if ($this->_tpl_vars['forms'][$this->_tpl_vars['vv']] == 1): ?> checked="true" <?php endif; ?> value="1" /><?php echo $this->_tpl_vars['hg_na'][$this->_tpl_vars['kk']]; ?>
</label>
						         <?php endforeach; endif; unset($_from); ?>
						         </td>
							</tr>
							<tr class="odd">
								<th>一覧ページ表示件数</th>
								<td>
									<input type="text" name="listnumber" class="smartspinner" value="<?php echo $this->_tpl_vars['forms']['listnumber']; ?>
">件単位
							</tr>
							<tr>
								<th>一覧ページ表示項目</th>
								<td>
							     <?php $_from = $this->_tpl_vars['lg_nu']; if (!is_array($_from) && !is_object($_from)) { settype($_from, 'array'); }$this->_foreach['member'] = array('total' => count($_from), 'iteration' => 0);
if ($this->_foreach['member']['total'] > 0):
    foreach ($_from as $this->_tpl_vars['kk'] => $this->_tpl_vars['vv']):
        $this->_foreach['member']['iteration']++;
?>
							    <label><input type="checkbox" name="<?php echo $this->_tpl_vars['vv']; ?>
"  <?php if ($this->_tpl_vars['forms'][$this->_tpl_vars['vv']] == 1): ?> checked="true" <?php endif; ?> value="1" /><?php echo $this->_tpl_vars['lg_na'][$this->_tpl_vars['kk']]; ?>
</label>
						         <?php endforeach; endif; unset($_from); ?>
								</td>
							</tr>
							<tr class="odd">
								<th>表示順</th>
								<td>
								<?php echo smarty_function_html_radios(array('name' => 'orderby','options' => $this->_tpl_vars['set_order'],'checked' => $this->_tpl_vars['forms']['orderby']), $this);?>

								</td>
							</tr>
						</tbody>
					</table>

					<p class="button">
						<button type="submit" class="submit"><span>更新</span></button>
					</p>
					<input type="hidden" name="mode" value="update">
				</form>
			</section>
	</article>
</div>
<?php echo $this->_tpl_vars['zfooter']; ?>

</body>
</html>